/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2022-06-01 17:24:06
 * @LastEditors: GGB
 * @LastEditTime: 2022-06-01 18:07:42
 */
import 'package:get/get.dart';

///控制器的编写
class NavController extends GetxController {
  final _nav = 0.obs;
  set nav(value) => _nav.value = value;
  get nav => _nav.value;

  @override
  void onInit() {
    super.onInit();
    print("onInit");
  }

  @override
  void onClose() {
    super.onClose();
    print("onClose");
  }
}
